﻿@using Model
@model config_file_second_kind
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-trasitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="~/css/table.css" rel="stylesheet" />
    <script src="~/lib/jquery-validation/dist/jquery.validate.js"></script>
    <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
    <script src="~/javascript/comm/comm.js"></script>
    <script type="text/javascript">
        function check() {
            if (document.getElementById("firstKind.ffkId").value == 0) {
                alert("请选择I级机构名称!!!");
                return false;
            }
            if (document.getElementById("secondKind.secondKindName").value == "") {
                alert("II级机构名称不能为空!!!");
                return false;
            }
            if (document.getElementById("secondKind.secondSalaryId").value == "") {
                alert("薪酬发放责任人编号不能为空!!!");
                return false;
            }
            if (document.getElementById("secondKind.secondSaleId").value == "") {
                alert("销售责任人编号不能为空!!!");
                return false;
            }
            document.forms[0].submit();
        }
        function change() {
            var se = document.getElementById("firstKindId");
            document.getElementById("firstKindName").value = se.options[se.selectedIndex].innerHTML;

        }
    </script>
</head>


<body>
    <form role="form" asp-action="second_kind_register" method="post">
        <input type="hidden" id="firstKindName" name="cfsk.firstKindName">
        <table width="100%">
            <tr>
                <td>
                    <font color="black">
                        您正在做的业务是：人力资源--客户化设置--人力资源档案管理设置--II级机构设置--II级机构添加
                    </font>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <input type="submit" value="提交" class="BUTTON_STYLE1">
                    <input type="button" value="返回" class="BUTTON_STYLE1"
                           onclick="history.back();">
                </td>
            </tr>
        </table>


        <table width="100%" border="1" cellpadding=0 cellspacing=1
               bordercolorlight=#848284 bordercolordark=#eeeeee
               class="TABLE_STYLE1">
            <tr>
                <td width="19%" class="TD_STYLE1">
                    I级机构名称
                </td>
               
                    <td width="81%" class="TD_STYLE2">
                        <select  asp-for="first_kind_id">
                            <option value="0">
                                请选择I机构名称
                            </option>

                            @foreach (var item in ViewBag.ss)
                            {
                                 <option value=@item.first_kind_id>@item.first_kind_name</option>
                            }



                        </select>

                    </td>
                
                </tr>
            <tr>
                <td width="19%" class="TD_STYLE1">
                    II级机构编号
                </td>
                <td width="81%" class="TD_STYLE2">
                    <input type="text" class="form-control" asp-for="second_kind_id"
                           placeholder="请输入II级机构编号">
                </td>
            </tr>
            <tr>
                <td class="TD_STYLE1">
                    II级机构名称
                </td>
                <td class="TD_STYLE2">
                    <input type="text" class="form-control" asp-for="second_kind_name"
                           placeholder="请输入 II级机构名称">
                </td>
            </tr>
            <tr>
                <td class="TD_STYLE1">
                    薪酬发放责任人编号（多个编号之间请用"半角逗号"加"一个空格"隔开，如", "）
                </td>
                <td class="TD_STYLE2">
                    <textarea asp-for="second_salary_id" rows="4"
                              class="form-control"></textarea>
                </td>
            </tr>
            <tr>
                <td class="TD_STYLE1">
                    销售责任人编号（多个编号之间请用"半角逗号"加"一个空格"隔开，如", "）
                </td>
                <td class="TD_STYLE2">
                    <textarea asp-for="second_sale_id" rows="4"
                              class="form-control"></textarea>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>

